//定义用户登陆请求参数类型
export interface UserLoginRequestData {
  username: string
  password: string
}

//定义服务器返回类型基类
interface BaseResponseData {
  code: number
  message: string
  ok: boolean
}

//定义用户登陆返回参数类型
export interface UserLoginResponseData extends BaseResponseData {
  data: string
}
//定义获取用户信息类型
export interface UserInfoResponseData extends BaseResponseData {
  data: {
    routes: string[]
    buttons: string[]
    roles: string[]
    name: string
    avatar: string
  }
}

export interface UserInfoRecord {
  id?: number | null
  createTime?: string | null
  updateTime?: string | null
  username?: string | null
  password?: string | null
  name?: string | null
  phone?: string | null
  roleName?: string | null
}

export interface UserInfoResponsePageData extends BaseResponseData {
  data: {
    records: UserInfoRecord[]
    total: number
  }
}
